package com.example.aop.service;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * ClassName:SpringConfig
 * Package:com.example.aop.service
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/11-8:50
 * @Version:v1.0
 */
@Configuration//代替spring.xml文件
@ComponentScan("com.example.aop.service") //组件扫描
@EnableAspectJAutoProxy(proxyTargetClass = true)//启用aspectj的自动代理机制
public class SpringConfig {

}
